package hr.tvz.lab.tom.malwaredb.info;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;

/**
 * Alternate LinearLayoutManager class used for disabling scrolling in RecyclerView.
 */
public class NoScrollLinearLayoutManager extends LinearLayoutManager {
    public NoScrollLinearLayoutManager(Context context) {
        super(context);
    }

    /**
     * Thing that's missing in RecyclerView as a generic feature.
     * @return False.
     */
    @Override
    public boolean canScrollVertically() {
        return false;
    }
}
